package com.bwie.service.impl;

import com.bwie.common.domain.User;
import com.bwie.common.domain.request.UserRequest;
import com.bwie.common.result.Result;
import com.bwie.mapper.UserMapeer;
import com.bwie.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @className: UserServiceImpl
 * @Description: TODO
 * @version: v1.８.0
 * @author: 张雨乐
 * @date: 2025/9/18 9:44
 */
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapeer userMapeer;
    @Override
    public Result<User> login(UserRequest userRequest) {
        User user=userMapeer.login(userRequest);
        return Result.success(user);
    }
}
